from flask import Flask
from flask_sqlalchemy import SQLAlchemy


app = Flask('sayhello')
app.config.from_pyfile('settings.py')

# 去掉jinja模板空白行
app.jinja_env.trim_blocks = True
app.jinja_env.lstrip_blocks = True

# 数据库扩展初始化
db = SQLAlchemy(app)


from sayhello import views
